package com.mj.service.system;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mj.dao.system.ButtonsMapper;
import com.mj.model.system.Buttons;
@Service("buttonsService")
public class ButtonsServiceImpl implements ButtonsService {

	@Resource
	private ButtonsMapper buttonsDao;
	@Override
	public int sysButtonsAdd(Buttons skuModel) {
		return buttonsDao.sysButtonsAdd(skuModel);
	}
	@Override
	public int sysButtonsEdit(Buttons skuModel) {
		return buttonsDao.sysButtonsEdit(skuModel);
	}
	@Override
	public int sysButtonsDelete(int id) {
		return buttonsDao.sysButtonsDelete(id);
	}
	@Override
	public Buttons sysButtonsQuery(int id) {
		return buttonsDao.sysButtonsQuery(id);
	}
	@Override
	public List<Buttons> findAllButtons() {
		return buttonsDao.findAllButtons();
	}
	
}
